package com.ftg.learn.mapper;


import com.ftg.learn.domain.SysDeptDomain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author kangjx
 * @date 2024/2/20
 */
@Mapper
public interface SysDeptMapper {

    /**
     * 用来完成  有的组织被动结这件事情
     * @return
     */
//    @Select("select id,name,parent_id as parentId from sys_dept where status = 0")
//    List<SysDeptDomain> orgTree();


    @Select("select id,name,parent_id as parentId,status  from sys_dept")
    List<SysDeptDomain> orgTree();

}
